package com.naiterui.ehp.bs.cms.modules.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * <pre>
 * 医生患者关系表
 * </pre>
 *
 * @author wangzehao
 */

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("patient_personal_doctor")
public class PatientPersonDoctor {

    /**
     * 扫码来源，APPS：<code>SCAN_SOUREC_APP</code>
     */
    public static final int SCAN_SOUREC_APP = 0;
    /**
     * 扫码来源，互联网医院PC：<code>SCAN_SOUREC_PC</code>
     */
    public static final int SCAN_SOUREC_PC = 1;
    /**
     * 扫码来源，推荐咨询活动：<code>SCAN_SOUREC_PC</code>
     */
    public static final int SCAN_SOUREC_CONSULT_ACTIVITY = 2;
    /**
     * 关注来源：线上诊室关注
     */
    public static final int SCAN_CODE_SOURCE_CONSULT_ROOM = 3;

    /**
     * 医患关系状态：正常
     */
    public static final int RELATION_FLAG_NORMALITY = 0;

    /**
     * 医患关系状态：删除
     */
    public static final int RELATION_FLAG_DELETE = 1;

    private static final long serialVersionUID = -5515499741254601271L;

    /**
     * 医生、患者id主键：<code>personPK</code>
     */
    private Long patientId;

    /**
     * 医生id
     */
    private Long doctorId;
    /**
     * 创建时间：<code>createAt</code>
     */
    private Date createAt;
    /**
     * 患者扫码来源：<code>source</code>
     */
    private Integer source;

    /**
     * 医患关系状态 0：正常 ，1：删除
     */
    private Integer relationFlag = PatientPersonDoctor.RELATION_FLAG_NORMALITY;

    /**
     * 操作医患关系时间
     */
    private Date operateDate;


}
